/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.winner.lps.modules.app.entity;

import com.winner.lps.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 保障人员管理Entity
 *
 * @author 程少威
 * @version 2017-04-09
 */
public class AppPersonnel extends DataEntity<AppPersonnel> {

    private static final long serialVersionUID = 1L;
    private String name;        // 姓名
    private String phone;        // 手机号
    private String email;        // 邮箱
    private String department;        // 部门
    private String position;        // 职位

    public AppPersonnel() {
        super();
    }

    public AppPersonnel(String id) {
        super(id);
    }

    @Length(min = 1, max = 50, message = "姓名长度必须介于 1 和 50 之间")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Length(min = 1, max = 50, message = "手机号长度必须介于 1 和 50 之间")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Length(min = 0, max = 50, message = "邮箱长度必须介于 0 和 50 之间")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Length(min = 0, max = 50, message = "部门长度必须介于 0 和 50 之间")
    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    @Length(min = 0, max = 50, message = "职位长度必须介于 0 和 50 之间")
    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

}